<%
# Parameters:
#  dayOfMonth: Any day of the month to render the header for.
%>

<% @timeSpanToDisplay.each do |currentDay|%>
  <%
    if (currentDay.day == 1) then
      klass = ' firstDayOfMonth'
    elsif (currentDay.day == currentDay.end_of_month.day) then
      klass = ' lastDayOfMonth'
    else
      klass = ''
    end
  %>
  <th class="day-of-month<%= klass %>" scope="col">
    <%= currentDay.day.to_s %>
  </th>
<% end %>